package com.hxkj.dao.impl;

import com.hxkj.dao.LabelManagementDao;
import com.hxkj.domain.po.LabelExt;
import com.hxkj.domain.vo.LabelExtVO;
import com.hxkj.domain.vo.LabelManagementVO;
import com.hxkj.mapper.LabelExtMapper;
import com.hxkj.mapper.LabelManagementMapper;
import com.hxkj.domain.po.LabelManagement;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
* 标签管理表数据操作实现
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-07-19 17:28:12
*
*/
@Service("labelManagementDao")
public class LabelManagementDaoImpl implements LabelManagementDao {

    @Resource
    private LabelManagementMapper labelManagementMapper;
    @Resource
    private LabelExtMapper labelExtMapper;

    @Override
    public LabelManagement get(Long labelId) {
        return labelManagementMapper.selectByPrimaryKey(labelId);
    }

    @Override
    public List<LabelManagement> get(LabelManagement labelManagement) {
        return labelManagementMapper.select(labelManagement);
    }

    @Override
    public List<LabelManagementVO> getList(LabelManagement labelManagement) {
        return labelManagementMapper.getList(labelManagement);
    }

    @Override
    public int delete(Long labelId) {
        return labelManagementMapper.deleteByPrimaryKey(labelId);
    }

    @Override
    public int delete(LabelManagement labelManagement) {
        return labelManagementMapper.delete(labelManagement);
    }

    @Override
    public int save(LabelManagement labelManagement) {
        return labelManagementMapper.insert(labelManagement);
    }

    @Override
    public int update(LabelManagement labelManagement) {
        return labelManagementMapper.update(labelManagement);
    }

    @Override
    public int deleteLabelManagement(Map<String, Object> map) {
        return labelManagementMapper.deleteLabelManagement(map);
    }
}
